<?php
include($_SERVER["DOCUMENT_ROOT"]."/bob.php");
include($_SERVER["DOCUMENT_ROOT"]."/fonctions_globales.php");
$mysqli = new_mysqli($host, $user, $password, $database); //connection à la DB

if(get_data_in_db($mysqli, "gens", "user_id", $_SESSION['id'], "user_level")!='1'){
	header("Location: /"); exit();}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="fr" dir="ltr">

<head>
<meta charset="utf-8">
<title>Admin du forum</title>
<link rel="stylesheet" type="text/css" href="fourum.css">
</head>
<?php main_body($mysqli); ?><p align='center'><div class='boite'>
<a href='../index.php'>Index du fourum</a></div> <div class='boite'><a href='forums.php'>forums</a> 
</div> <div class='boite'><a href='smileys.php'>Smileys</a> 
</div> <div class='boite'><a href='rangs.php'>Rangs</a></div> <div class='boite'><a href='gens.php'>Permissions/ban</a> </div></p>
<?php
?>

</body></html>